function query_applicationManager(page) {
	sys_loading();
	var parm = $('#queryApplyForm').serialize() + (page != null ? ('&page=' + page) : '');
	var url = create_url('applicationManager-query');
	sys_record_parm('applicationManager',parm);
	$.ajax({type:'POST', url:url, data:parm,
		success: function(result) {
			sys_loading_close();
			$('#applicationManagerList').html(result);
		}
	});
}

function selectAllquery_applicationManager() {
	var template = $('#tempDiv').find('.rep');
	var listDiv = $('#selectedapplicationListDiv');
	$('#applicationManagerList').find('.sb').each(function () {
		var pii = template.clone(true);
		pii.find('.title').html($(this).attr('title')).end()
			.find('.c').val($(this).attr('pic')).end();
		
		listDiv.append(pii);
	});
	queryquery_applicationManager();
}


function save_applicationManager() {
	var parm = $('#editApplicationForm').serialize();
	var url = create_url('applicationManager-save');
	sys_submiting();
	$.ajax({type:'POST', url:url, data:parm,
		success: function(result) {
			sys_submiting_close();
			if (result == 'success') {
				sys_load_handle('applicationManager');
			} else {
				$.Zebra_Dialog('操作失败!');
			}
		}
	});
}

function recordSave_applicationManager() {
	var parm = $('#editApplicationForm').serialize();
	var url = create_url('applicationManager-recordSave');
	sys_submiting();
	$.ajax({type:'POST', url:url, data:parm,
		success: function(result) {
			sys_submiting_close();
			if (result == 'success') {
				sys_load_handle('applicationManager');
			} else {
				sys_msg('操作失败!');
			}
		}
	});
}


function edit_applicationManager() {
	var parm = $('#editVehicleTypeForm').serialize();
	var url = create_url('applicationManager-edit');
	sys_submiting();
	$.ajax({type:'POST', url:url, data:parm,
		success: function(result) {
			sys_submiting_close();
			if (result == 'success') {
				sys_load_handle('applicationManager');
			} else {
				$.Zebra_Dialog('操作失败!');
			}
		}
	});
}


